package com.greedy.bulls.stock.trade.oauth.repository;

import com.greedy.bulls.stock.entity.user.TradeUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * @Author: Yanxy
 * @Date: Created in:2023-07-12
 * Description: 用户信息持久层
 */
@Repository("tradeUserRepository")
public interface TradeUserRepository extends PagingAndSortingRepository<TradeUser, String>, JpaSpecificationExecutor<TradeUser> {

    /**
     * 根据用户账号获取用户对象
     *
     * @param userNo 用户账号
     * @return 用户对象
     */
    public TradeUser findByUserNo(String userNo);


}